From c808fda5a9091b07b07fd14c842e961d1ab4ff69 Mon Sep 17 00:00:00 2001 From: justbur Date: Fri, 24 Jul 2015 09:52:41 -0400 Subject: [PATCH] Allow which-key-special-keys to be nil --- which-key.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/which-key.el b/which-key.el index 1f3966ba282..2d49e62f13d 100644 --- a/which-key.el +++ b/which-key.el @@ -720,7 +720,8 @@ If KEY contains any \"special keys\" defined in (mapconcat 'identity which-key-special-keys "\\|") "\\)"))) (save-match-data - (if (string-match regexp key) + (if (and which-key-special-keys + (string-match regexp key)) (let ((beg (match-beginning 0)) (end (match-end 0))) (concat (substring key-w-face 0 beg) (propertize (substring key-w-face beg (1+ beg)) -- 2.30.2